//
//  LoginNameValidator.m
//  liangyi
//
//  Created by 张水 on 16/12/19.
//  Copyright © 2016年 yswh. All rights reserved.
//

#import "LoginNameValidator.h"

@implementation LoginNameValidator


- (BOOL)validateInput:(UITextField *)input {
    
    if (![CommonMethod checkUserInput:input.text]) {
        self.errorMessage = @"用户名输入不能为空";
    }else{
        self.errorMessage = nil;
    }

    return self.errorMessage == nil ? YES:NO;
    
}
@end
